﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FY2013.Model;

namespace FY2013.Business
{
    public class LanguageHelper
    {
        public static List<Languages> GetTopLanguage(int top)
        {
            List<Languages> languages = null;
            using (Entities entity = new Entities())
            {
                languages= entity.Languages.OrderBy(e => e.OrderNo).Take(top).ToList();
            }
            return languages;
        }
    }
}
